package com.skjanyou.applicationcase.start;

import com.skjanyou.applicationcase.filter.StaticResourcesFilter;
import com.skjanyou.server.api.bean.ApplicateContext;
import com.skjanyou.start.anno.Configure;
import com.skjanyou.start.config.impl.PropertiesConfig;
import com.skjanyou.start.start.ApplicationStart;


@Configure(
	name = "skjanyou案例配置",
	configManagerFactory = PropertiesConfig.class,
	scanPath = "com.skjanyou.applicationcase"
)
public class ApplicationCaseStart {

	public static void main(String[] args) {
		ApplicateContext.registFilter(new StaticResourcesFilter());
		if(System.getProperty("skjanyou.configfile") == null){
			System.setProperty("skjanyou.configfile", "classpath:/config/application.properties");
		};
		ApplicationStart.start(ApplicationCaseStart.class);
	}

}
